package com.hzj.service;

import com.hzj.dao.UserMapper;
import com.hzj.pojo.User;

public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public int addUser(User user) {
        return userMapper.addUser(user);
    }

    public User login(String userName, String pwd) {
        return userMapper.login(userName,pwd);
    }

    public User queryUserByName(String userName) {
        return userMapper.queryUserByName(userName);
    }
}
